using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using RRHH.Models.Mapping;
using RRHH.RRHH_Service;

namespace RRHH.Models
{
    public class DB_RRHHContext : DbContext
    {
        static DB_RRHHContext()
        {
            Database.SetInitializer<DB_RRHHContext>(null);
        }

		public DB_RRHHContext()
			: base("Name=DB_RRHHContext")
		{
		}

        public DbSet<BANCO> BANCO { get; set; }
        public DbSet<CARGO> CARGO { get; set; }
        public DbSet<CATALOGO> CATALOGO { get; set; }
        public DbSet<CATEGORIASEMPLEADO> CATEGORIASEMPLEADO { get; set; }
        public DbSet<CENTROCOSTO> CENTROCOSTO { get; set; }
        public DbSet<CLASEPLANILLA> CLASEPLANILLA { get; set; }
        public DbSet<CONCEPTO> CONCEPTO { get; set; }
        public DbSet<CONTRATO> CONTRATO { get; set; }
        public DbSet<DEPARTAMENTO> DEPARTAMENTO { get; set; }
        public DbSet<DETALLECAMPOSARCHIVOSUNAT> DETALLECAMPOSARCHIVOSUNAT { get; set; }
        public DbSet<DETALLETIPOARCHIVOSUNAT> DETALLETIPOARCHIVOSUNAT { get; set; }
        public DbSet<DISTRITO> DISTRITO { get; set; }
        public DbSet<DOCUMENTOIDENTIDAD> DOCUMENTOIDENTIDAD { get; set; }
        public DbSet<EMPRESA> EMPRESA { get; set; }
        public DbSet<EP> EP { get; set; }
        public DbSet<ESTADOCIVIL> ESTADOCIVIL { get; set; }
        public DbSet<ESTADOCONTRATO> ESTADOCONTRATO { get; set; }
        public DbSet<MAESTROPERSONAL> MAESTROPERSONAL { get; set; }
        public DbSet<PAI> PAI { get; set; }
        public DbSet<BEPersonal> PERSONAL { get; set; }
        public DbSet<PROVINCIA> PROVINCIA { get; set; }
        public DbSet<REMUNERACIONINICIAL> REMUNERACIONINICIAL { get; set; }
        public DbSet<sysdiagram> sysdiagram { get; set; }
        public DbSet<TIPOCONCEPTO> TIPOCONCEPTO { get; set; }
        public DbSet<TIPOCONTRATO> TIPOCONTRATO { get; set; }
        public DbSet<TIPOEXTINCION> TIPOEXTINCION { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add(new BANCOMap());
            modelBuilder.Configurations.Add(new CARGOMap());
            modelBuilder.Configurations.Add(new CATALOGOMap());
            modelBuilder.Configurations.Add(new CATEGORIASEMPLEADOMap());
            modelBuilder.Configurations.Add(new CENTROCOSTOMap());
            modelBuilder.Configurations.Add(new CLASEPLANILLAMap());
            modelBuilder.Configurations.Add(new CONCEPTOMap());
            modelBuilder.Configurations.Add(new CONTRATOMap());
            modelBuilder.Configurations.Add(new DEPARTAMENTOMap());
            modelBuilder.Configurations.Add(new DETALLECAMPOSARCHIVOSUNATMap());
            modelBuilder.Configurations.Add(new DETALLETIPOARCHIVOSUNATMap());
            modelBuilder.Configurations.Add(new DISTRITOMap());
            modelBuilder.Configurations.Add(new DOCUMENTOIDENTIDADMap());
            modelBuilder.Configurations.Add(new EMPRESAMap());
            modelBuilder.Configurations.Add(new EPMap());
            modelBuilder.Configurations.Add(new ESTADOCIVILMap());
            modelBuilder.Configurations.Add(new ESTADOCONTRATOMap());
            modelBuilder.Configurations.Add(new MAESTROPERSONALMap());
            modelBuilder.Configurations.Add(new PAIMap());
            modelBuilder.Configurations.Add(new PERSONALMap());
            modelBuilder.Configurations.Add(new PROVINCIAMap());
            modelBuilder.Configurations.Add(new REMUNERACIONINICIALMap());
            modelBuilder.Configurations.Add(new sysdiagramMap());
            modelBuilder.Configurations.Add(new TIPOCONCEPTOMap());
            modelBuilder.Configurations.Add(new TIPOCONTRATOMap());
            modelBuilder.Configurations.Add(new TIPOEXTINCIONMap());
        }
    }
}
